c# how to get a securestring from string

89

c# how to get a securestring from string -

SecureString theSecureString = new NetworkCredential("", "myPass").SecurePassword;

c# how to get a securestring from string -

var s = new SecureString();
s.AppendChar('d');
s.AppendChar('u');
s.AppendChar('m');
s.AppendChar('b');
s.AppendChar('p');
s.AppendChar('a');
s.AppendChar('s');
s.AppendChar('s');
s.AppendChar('w');
s.AppendChar('d');

Comments

Submit
0 Comments